/*
 * SimpleCmd.scala
 */

package acorn.jash

class SimpleCmd(trans:Boolean=true,cmd:String=null) extends Cmd {
  override def exec {
    val cmdstr = name + (""/:args)(_+" "+_)
    // println("cmdstr => " + cmdstr)
    (new Process(cmdstr, this)).run()
  }

  val name = if (null == cmd) getClass.getSimpleName
             else cmd
}
